package com.example.siyun.service.impl.permissionsserviceimpl;

import com.example.siyun.mapper.permissionsmapper.FrontmanageloginMapper;
import com.example.siyun.pojo.Loginlog;
import com.example.siyun.service.permissionsservice.FrontmanageloginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
/**
 * @Auther: 全
 * @Date: 2022/9/26 09:33
 * @Description:权限管理模块前台人员登录
 */
@Service
public class FrontmanageloginServiceImpl implements FrontmanageloginService {
    @Autowired
    private FrontmanageloginMapper frontmanageloginMapper;
    /**
     * 获取前台人员登录日志
     * @return 返回前台人员登录日志
     */
    @Transactional
    @Override
    public List<Loginlog> getBackManageLogin(Loginlog loginlog,int logintype,int isdel) {
        return frontmanageloginMapper.getFrontManageLogin(loginlog,logintype,isdel);
    }
    /**
     * 通过id删除对应前台人员数据
     */
    @Transactional
    @Override
    public void delFrontManageLogin(int id,int isdel) {
        frontmanageloginMapper.delFrontManageLogin(id,isdel);
    }
}
